import mockjs from 'mockjs';
import { delay } from 'roadhog-api-doc';
import defaultSettings from '@/defaultSettings';

const proxy = {
  'POST /oc/StaffPoolManagerController/findStaffPools.do': (req, res) => {
    res.send({
      pageNum: 1,
      pageSize: 15,
      size: 15,
      startRow: 1,
      endRow: 15,
      total: 19,
      pages: 2,
      list: [
        {
          poolId: 12902,
          poolName: '预约处理(苏州)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12914,
          poolName: '预约处理(扬州)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12913,
          poolName: '预约处理(盐城)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12912,
          poolName: '预约处理(泰州)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12911,
          poolName: '预约处理(南通)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12910,
          poolName: '预约处理(镇江)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12908,
          poolName: '预约处理(常州)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12907,
          poolName: '预约处理(徐州)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12906,
          poolName: '预约处理(连云港)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12905,
          poolName: '预约处理(南京)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12904,
          poolName: '预约处理(宿迁)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 12903,
          poolName: '预约处理(淮安)',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: '系统管理员',
          createTime: '2020-05-09 17:12:04.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 10905,
          poolName: '业务管理人员',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: null,
          createTime: '2020-04-23 11:25:51.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 8902,
          poolName: '调度人员',
          preholdingTime: 0,
          allocationNum: 100,
          status: 1000,
          createUserId: 1,
          createUserName: null,
          createTime: '2020-04-21 16:01:42.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
        {
          poolId: 4906,
          poolName: '订单发起人',
          preholdingTime: 30,
          allocationNum: 100,
          status: 1000,
          createUserId: 1965868,
          createUserName: '系统管理员',
          createTime: '2020-04-14 15:12:42.0',
          modifyUserId: null,
          modifyUserName: null,
          modifyTime: null,
          intervalTime: 5,
          poolType: 1000,
        },
      ],
      prePage: 0,
      nextPage: 2,
      isFirstPage: true,
      isLastPage: false,
      hasPreviousPage: false,
      hasNextPage: true,
      navigatePages: 8,
      navigatepageNums: [1, 2],
      navigateFirstPage: 1,
      navigateLastPage: 2,
      firstPage: 1,
      lastPage: 2,
    });
  },
};

export default delay(proxy, defaultSettings.delay);
